import demo1.Circle;
import demo1.Rectangle;
import demo1.Shape;
import demo1.Triangle;

public class Test {
    public static void func(Shape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        Shape shape1 = new Triangle();
        Shape shape2 = new Rectangle();
        Shape shape3 = new Circle();
        func(shape1);
        func(shape2);
        func(shape3);
    }
}
